runtime.m.curg (field)
89 uses
runtime (current package)
cgocall.go#L205: if gp != gp.m.curg {
debugcall.go#L28: if getg() != getg().m.curg {
heapdump.go#L697: casgstatus(_g_.m.curg, _Grunning, _Gwaiting)
heapdump.go#L718: casgstatus(_g_.m.curg, _Gwaiting, _Grunning)
malloc.go#L962: if assistG.m.curg != nil {
malloc.go#L963: assistG = assistG.m.curg
mbitmap.go#L2018: if _g_ := getg(); _g_.m.curg.stack.lo <= uintptr(p) && uintptr(p) < _g_.m.curg.stack.hi {
mbitmap.go#L2022: gentraceback(_g_.m.curg.sched.pc, _g_.m.curg.sched.sp, 0, _g_.m.curg, 0, nil, 1000, getgcmaskcb, noescape(unsafe.Pointer(&frame)), 0)
mgc.go#L799: gp := getg().m.curg
mgc.go#L920: gp := _g_.m.curg
mgcmark.go#L219: userG := getg().m.curg
mgcmark.go#L1019: gp := getg().m.curg
mgcmark.go#L1137: gp := getg().m.curg
mgcwork.go#L470: gp := getg().m.curg
mprof.go#L422: if gp.m.curg == nil || gp.m.curg == gp {
mprof.go#L425: nstk = gcallers(gp.m.curg, skip, stk[:])
mprof.go#L894: if gp.m.curg == nil || gp == gp.m.curg {
mprof.go#L902: goroutineheader(gp.m.curg)
mprof.go#L903: traceback(^uintptr(0), ^uintptr(0), 0, gp.m.curg)
panic.go#L232: if gp.m.curg != gp {
panic.go#L269: if gp.m.curg != gp {
panic.go#L760: if gp.m.curg != gp {
panic.go#L1179: if gp != gp.m.curg {
panic.go#L1225: if gp == nil || gp != mp.curg {
preempt.go#L106: if mp := getg().m; mp.curg != nil && readgstatus(mp.curg) == _Grunning {
preempt.go#L369: if mp.curg != gp {
proc.go#L349: gp := mp.curg
proc.go#L1863: casgstatus(mp.curg, _Gdead, _Gsyscall)
proc.go#L1911: mp.curg = gp
proc.go#L1965: casgstatus(mp.curg, _Gsyscall, _Gdead)
proc.go#L1966: mp.curg.preemptStop = false
proc.go#L2495: _g_.m.curg = gp
proc.go#L3239: setMNoWB(&_g_.m.curg.m, nil)
proc.go#L3240: setGNoWB(&_g_.m.curg, nil)
proc.go#L3945: gp := getg().m.curg
proc.go#L3965: gp := getg().m.curg
proc.go#L4118: if _g_.m.curg != nil {
proc.go#L4119: newg.labels = _g_.m.curg.labels
proc.go#L4486: if mp.ncgo > 0 && mp.curg != nil && mp.curg.syscallpc != 0 && mp.curg.syscallsp != 0 {
proc.go#L4502: n = gentraceback(mp.curg.syscallpc, mp.curg.syscallsp, 0, mp.curg, 0, &stk[cgoOff], len(stk)-cgoOff, nil, nil, 0)
proc.go#L4545: if gp != nil && gp.m != nil && gp.m.curg != nil {
proc.go#L4546: tagPtr = &gp.m.curg.labels
proc.go#L5306: gp := mp.curg
proc.go#L5375: gp := mp.curg
runtime2.go#L526: curg *g // current running goroutine
sema.go#L100: if gp != gp.m.curg {
signal_unix.go#L711: if _g_.m.incgo && gp == _g_.m.g0 && _g_.m.curg != nil {
signal_unix.go#L715: gp = _g_.m.curg
signal_unix.go#L747: if crashing > 0 && gp != _g_.m.curg && _g_.m.curg != nil && readgstatus(_g_.m.curg)&^_Gscan == _Grunning {
signal_unix.go#L749: goroutineheader(_g_.m.curg)
signal_unix.go#L750: traceback(^uintptr(0), ^uintptr(0), 0, _g_.m.curg)
signal_unix.go#L1099: if g != nil && g.m != nil && g.m.curg != nil && !g.m.incgo {
stack.go#L966: if thisg.m.morebuf.g.ptr() != thisg.m.curg {
stack.go#L967: print("runtime: newstack called from g=", hex(thisg.m.morebuf.g), "\n"+"\tm=", thisg.m, " m->curg=", thisg.m.curg, " m->g0=", thisg.m.g0, " m->gsignal=", thisg.m.gsignal, "\n")
stack.go#L973: gp := thisg.m.curg
stack.go#L975: if thisg.m.curg.throwsplit {
stack.go#L1166: if !(gp == getg().m.curg && getg() != getg().m.curg && s == _Grunning) {
stack.go#L1177: if gp == getg().m.curg && gp.m.libcallsp != 0 {
trace.go#L540: if getg() == mp.curg {
trace.go#L605: gp := mp.curg
trace.go#L610: gp = mp.curg
trace.go#L644: dolock := owner == nil || owner != getg().m.curg
trace.go#L1079: _g_ := getg().m.curg
trace.go#L1143: _g_ := getg().m.curg
traceback.go#L39: if ourg := getg(); ourg == gp && ourg == ourg.m.curg {
traceback.go#L165: if flags&_TraceJumpStack != 0 && gp == gp.m.g0 && gp.m.curg != nil {
traceback.go#L173: frame.pc = gp.m.curg.sched.pc
traceback.go#L177: frame.sp = gp.m.curg.sched.sp
traceback.go#L178: cgoCtxt = gp.m.curg.cgoCtxt
traceback.go#L182: frame.sp = gp.m.curg.sched.sp
traceback.go#L183: cgoCtxt = gp.m.curg.cgoCtxt
traceback.go#L450: if gp.m != nil && gp.m.throwing > 0 && gp == gp.m.curg || level >= 2 {
traceback.go#L916: if g.m.throwing > 0 && gp != nil && (gp == g.m.curg || gp == g.m.caughtsig.ptr()) {
traceback.go#L1023: curgp := getg().m.curg
traceback.go#L1399: if panicking > 0 || getg().m.curg != getg() {
traceback.go#L1419: if panicking > 0 || getg().m.curg != getg() {